{template "header.html"}
<script type="text/javascript">
$(function() {
	$(".table-list td").last().css('border-bottom','1px solid #EEEEEE');
});
</script>
<form action="" method="post" name="myform" id="myform">
<div class="subnav">
	<div class="content-menu ib-a blue line-x">
		{$menu}<span>|</span><a href="{SYS_HELP_URL}83.html" target="_blank"><em>{lang('help')}</em></a>
	</div>
	<div class="bk10"></div>
	<div class="explain-col">
		<font color="gray">{lang('html-772')}</font>
	</div>
	<div class="bk10"></div>
	<div class="table-list">
		<table width="100%">
		<thead>
		<tr>
			<th width="200" align="left">{lang('html-087')}</th>
			<th width="50" align="center">{lang('html-621')}</th>
			<th align="left" class="dr_option">{lang('option')}</th>
		</tr>
		</thead>
		<tbody>
        {loop $SITE $sid $t}
        {if $admin.adminid == 1 || ($admin.adminid > 1 && @in_array($sid, $admin.role.site))}
		<tr>
            <td align="left">{dr_strcut($t['SITE_NAME'], 25)}</td>
			<td align="center"><img src="{SITE_PATH}dayrui/statics/images/{if $data['site'][$sid]['html']}1{else}0{/if}.gif"></td>
			<td align="left" class="dr_option">
            {if $data['site'][$sid]['use']}
                {if $this->ci->is_auth('module/config')}<a class="alist" href="{dr_url('module/install3',array('id'=>$id, 'sid'=>$sid))}">{lang('361')}</a>{/if}
                {if $this->ci->is_auth('module/uninstall')}<a class="adel" href="javascript:;" onClick="return dr_confirm_url('<font color=red><b>{lang('html-771')}</b></font>','{dr_url('module/uninstall2',array('id'=>$id, 'dir'=>$dir, 'sid'=>$sid))}');">{lang('html-164')}</a>{/if}
                {if $this->ci->is_auth('module/uninstall')}<a class="adel" href="javascript:;" onClick="return dr_confirm_url('<font color=red><b>{lang('html-608')}</b></font>','{dr_url('module/clear',array('id'=>$id, 'dir'=>$dir, 'sid'=>$sid))}');">{lang('html-607')}</a>{/if}<a class="ago" href="{if $data['site'][$sid]['domain']}http://{$data['site'][$sid]['domain']}/{else}{$t.SITE_URL}{$data.dirname}{/if}" target="_blank">{lang('go')}</a>
                <span id="dr_domain_{$sid}"></span>
                <script type="text/javascript">
                    {if $data['site'][$sid]['domain']}
                        $.get("{dr_url('home/domain', array('domain' => $data['site'][$sid]['domain']))}", function(data){
                            if (data) {
                                $("#dr_domain_{$sid}").html("&nbsp;&nbsp;<a href='{dr_url('module/install3',array('id'=>$id, 'sid'=>$sid))}' style='color:red;'>域名解析异常</a>");
                            }
                        });
                    {/if}
                </script>
            {else}
                {if $this->ci->is_auth('module/install')}<a class="adel" href="{dr_url('module/install2', array('id'=>$id, 'dir'=>$dir, 'sid'=>$sid))}">{lang('html-163')}</a>{/if}
            {/if}
			</td>
		</tr>
		{/if}
		{/loop}
		</tbody>
		</table>
	</div>
</div>
</form>
{template "footer.html"}